package com.wenxixuanwu.fruitstore.controller;

import com.wenxixuanwu.fruitstore.entity.FruitBrand;
import com.wenxixuanwu.fruitstore.mapper.FruitBrandMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/fruitbrand")
public class FruitBrandController {

    @Autowired
    private FruitBrandMapper fruitBrandMapper;

    @RequestMapping("/select")
    public List<FruitBrand> selectByBrand(){
        return fruitBrandMapper.selectByBrand();
    }
}
